<?php

use Drupal\shusy_taxation\Entity\ShusyTaxation;

function shusy_taxation_shusy_taxation_add_page() {
  $e = new ShusyTaxation();
  module_load_include('inc', 'shusy_taxation', 'shusy_taxation.forms');
  return drupal_get_form('shusy_taxation_shusy_taxation_entity_form', $e, 'add');
}

function shusy_taxation_shusy_taxation_view_page(ShusyTaxation $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_taxation_shusy_taxation_edit_page(ShusyTaxation $e) {
//  $e = new ShusyTaxation();
  module_load_include('inc', 'shusy_taxation', 'shusy_taxation.forms');
  return drupal_get_form('shusy_taxation_shusy_taxation_entity_form', $e, 'edit');
}

function shusy_taxation_shusy_taxation_delete_page(ShusyTaxation $e) {
  module_load_include('inc', 'shusy_taxation', 'shusy_taxation.forms');
  return drupal_get_form('shusy_taxation_shusy_taxation_delete_form', $e);
}

